{layout name="layout/layout" /}
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label required">商户名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input"  placeholder="请输入商户名称" value="{$row.name|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">商户号</label>
            <div class="layui-input-block">
                <input type="text" name="mchid" class="layui-input"  placeholder="请输入微信商户号" value="{$row.mchid|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付证书</label>
            <div class="layui-input-block layuimini-upload">
                <input name="pemcert" class="layui-input layui-col-xs6" placeholder="请上传微信支付证书" value="{$row.pemcert|default=''}" lay-verify="required">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="pemcert" data-upload-number="one" data-upload-exts="pem|crt"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付密玥</label>
            <div class="layui-input-block">
                <input type="text" name="appsecret" class="layui-input"  placeholder="请输入微信支付密玥" value="{$row.appsecret|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付密玥证书</label>
            <div class="layui-input-block layuimini-upload">
                <input name="pemkey" class="layui-input layui-col-xs6" placeholder="请上传微信支付密玥证书" value="{$row.pemkey|default=''}" lay-verify="required">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="pemkey" data-upload-number="one" data-upload-exts="pem|crt"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付公钥 ID</label>
            <div class="layui-input-block">
                <input type="text" name="public_cert_id" class="layui-input"  placeholder="请输入微信支付公钥 ID" value="{$row.public_cert_id|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付公钥证书</label>
            <div class="layui-input-block layuimini-upload">
                <input name="public_cert" class="layui-input layui-col-xs6" placeholder="请上传微信支付公钥" value="{$row.public_cert|default=''}" lay-verify="required">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="public_cert" data-upload-number="one" data-upload-exts="pem|crt"><i class="fa fa-upload"></i> 上传</a></span>
                </div>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
